#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <math.h>

#include "fmod.hpp"
#include "fmod_errors.h"
#include "ExampleApplication.h"






class soundmanager
{
private:
	FMOD::System    *system;
    FMOD::Sound     *sound1;//, *sound2, *sound3, *sound4, *sound5;
	FMOD::Channel   *channel1;//, *channel2, *channel3, *channel4, *channel5;
    FMOD_RESULT      result;
	FMOD::DSP        *dspecho;
    int              key;
    bool             listenerflag;
    FMOD_VECTOR      listenerpos;
    unsigned int     version;
    FMOD_SPEAKERMODE speakermode;
    FMOD_CAPS        caps;
    char             name[256];
	//FMOD_VECTOR      pos;

	

public:
soundmanager();
/*void setposition(float x, float y, float z)
{
	pos.x = x;
	pos.y = y;
	pos.z = z;
}*/
void ERRCHECK(FMOD_RESULT result);
void start(void);
void play(int soundnum);
void updatesound(float x, float y, float z);
void shutdown(void);
void loadsound(void);
unsigned int timesincestart(void);
};